<template>
    <el-input-number class="search-input-number"
        v-model="option.value"
        :min="option.min"
        :max="option.max"
        :precision="option.precision"
        size="small"
        :controls="false"
        @blur="blurSearchItem(option, index)"
        @change="changeInputNumberSearchItem">

    </el-input-number>
</template>

<script>
import normalMixin from "../mixin/normalMixin";
export default {
    name: "searchInputNumber",
    mixins: [normalMixin],
    methods: {
        /**
         * InputNumber组件change事件触发的事件
         * @param {Number} number input返回的数据结构
         */
        changeInputNumberSearchItem(number) {
            if (this.option.changeMethod) this.option.changeMethod(number);
        }
    }
}
</script>
